<template>
    <div class="complain-delist">
            <div class="title">
                <div class="title-left">被投诉项目</div>
                <div class="title-right"><span>审核中心电话：0816-85100000</span><span @click="fun">私信管理员</span></div>
            </div>
            <div class="inner">
                <div style="border-bottom: 1px solid #e9e9e9;padding-bottom:6px;margin-bottom:6px" class="list-top">
                    <span>项目信息</span>
                    <span>项目类别</span>
                    <span>发布时间</span>
                </div>
                <ul>
                        <li class="out-list clearfix" >
                                <div style="display: inline-block;width: 140px;height: 114px;float: left"><img :src="$Url+checkAllGroup.images" alt="" style="width: 140px;height: 114px"></div>

                            <div style="float: left;margin-left: 10px">
                                <ul>
                                    <li>
                                        <span style="display: block;width:460px;float: left">标题：{{checkAllGroup.name}}</span>
                                        <span >{{checkAllGroup.group_name}}</span>
                                        <span style="margin-left: 120px">{{checkAllGroup.addtime}}</span>
                                    </li>
                                    <li class="yuanyin">
                                        <span >原因</span>
                                        <span>审核时间:{{checkAllGroup.creatime}}</span>
                                        <span style="color: #FE5371">该项目被投诉处于屏蔽状态，请尽快处理！</span>
                                    </li>
                                    <li class="content">
                                        <p>{{checkAllGroup.content}}</p>
                                    </li>
                                </ul>
                            </div>
                        </li>
                    </ul>
                <div class="comlist clearfix" v-for="(i,k) in checkAllGroup.reason" :key="k">
                   <div class="com-title clearfix">
                       <div class="title-img">
                           <img src="../../../assets/meirong1.jpg" alt="">
                       </div>
                       <div class="title-name">
                           <span>{{i.username}}</span>
                       </div>
                       <div class="title-time">
                          投诉时间：{{i.addtime}}
                       </div>
                   </div>
                    <div class="com-content">
                        <p>投诉原因及内容：{{i.content}}</p>
                        <span>系统通知：该日记被投诉，您只能看到投诉的原因和内容，无法私下处理，请尽快联系管理员处理，如十日内容不进行处理，管理员将给予相应的
                          处罚或封号处理！</span>
                    </div>
                </div>
                <div style="text-align: center;margin: 20px 0"><Page :total="100" /></div>
            </div>
        <div class="shensu clearfix">
            <p>我要申诉</p>
            <Input v-model="value6" type="textarea" :rows="4" placeholder="Enter something..." />
            <div class="zhengju clearfix">
                <span>证据</span><Input v-model="value" placeholder="" style="width: 525px;float: left" />
                <Upload action="http://www.hfbb.com/api/common/upload" :on-success="succ">
                    <Button>上传</Button>
                </Upload>
            </div>
            <p style="color: #999999;font-size: 12px;padding-left: 40px;padding-top: 2px">附件支持jpg、gif、rar等格式，但不得大于2MB</p>
            <span style="background-color: #FE5371;color: white;padding: 6px 42px;float: right;font-size: 16px">提交</span>
            <div class="jieguo">
                <p>申诉结果</p>
                <Input v-model="value5" type="textarea" :rows="4" placeholder="Enter something..." />
            </div>
        </div>

    </div>
</template>

<script>
    export default {
        name: "ComplainDelist",
        data () {
            return {
                checkAllGroup: [],
                selected:3,
                pid:'',
                value6:'',
                value5:'',
                value:''
            }
        },
        created () {
            this.getinfo()
        },
        methods: {
            succ (response){
                console.log(response)
                this.value = response.data.url

            },
            fun () {

            },

            deleted () {

            },
            getinfo () {
                this.pid = this.$route.query.id
                let _this = this
                _this.$post('/api/goods/complaintGoodsInfo',
                    {
                        project_id:_this.pid
                    },function (res) {
                        _this.checkAllGroup = res.data
                        console.log( _this.checkAllGroup)

                    },function (err,errmsg,errcode) {
                        _this.$message.error(errmsg);

                    }
                )
            }
        }
    }
</script>

<style  lang="less">
    @import "../../../style/style.less";
    .complain-delist{
        border: 1px solid @border-color;
        padding: 15px !important;
        .shensu{
            width: 650px;
            margin: 0 auto;
            .zhengju{
                margin-top: 5px;
                border-top: 1px solid #e0e0e0;
                padding-top: 5px;
                >span{
                    color: @theme-color-dark;
                    font-size: 14px;
                    float: left;
                    margin-top: 5px;
                    margin-right: 10px;
                }
                .ivu-upload{
                    width: 72px;
                    float: left;
                    margin-left: 15px;
                    button{
                        background-color: @theme-color-dark;
                        color: white;
                        border-color: @theme-color-dark;
                    }
                    .ivu-upload-list{
                        li{
                            display: none !important;
                        }

                    }
                }
            }
            >p{
                color: @theme-color-dark;
                font-size: 14px;
                padding-bottom: 5px;
            }
            .jieguo{
                border-top: 1px solid #e0e0e0;
                margin-top: 45px;
                >p{
                    color: @theme-color-dark;
                    font-size: 14px;
                    padding: 5px 0;
                }
            }

        }
        .comlist{
            border-bottom: 2px solid @theme-color-dark;
            padding: 10px;
            >.com-title{
                border-bottom: 1px dashed #e0e0e0;
                padding: 10px;
                >.title-img{
                    width: 36px;
                    height: 36px;
                    float: left;
                    img{
                        width: 100%;
                        height: 100%;
                        border-radius: 50%;
                    }
                }
                >.title-name{
                    float: left;
                    color: @theme-color-dark;
                    font-size: 14px;
                    margin-left: 8px;
                    margin-top: 8px;
                    /*padding-top: 10px;*/
                }
                >.title-time{
                    float: right;
                    color: #666666;
                    font-size: 14px;
                }
            }
            >.com-content{
                padding-top: 10px;
               >span{
                   color: @theme-color-dark;
                   font-size: 14px;
               }
                >p{
                    color: black;
                    font-size: 14px;
                    padding-bottom: 5px;
                }
            }
        }
    .yuanyin{
        padding-left: 0 !important;
        margin-top: 5px;
    >:first-child{
        display: block;
        width:50px;
        height: 30px;
        line-height: 30px;
        float: left;
        border: 1px solid #e0e0e0;
        text-align: center;
        border-bottom: 4px solid @theme-color-dark;
        margin-right: 20px;
    }
    >:nth-child(2){
        margin-right: 30px;
    }
     >:last-child{
         float: right;
     }
    }
    .content{
        margin-top: 2px;
        background-color: #f8f8f8;
        border: solid 1px #e0e0e0;
        line-height: 20px !important;
    }
    .title{
        color: #ff5371;
        font-size: 18px;
        padding-bottom: 8px;
        overflow: hidden;
        border-bottom: 1px solid @theme-color-dark;
        margin-bottom: 2px;
    }
    .title-left{
        float: left;
        font-size: 18px;
    }
    .title-right{
        float: right;
    }
    .title-right span{
        margin-right: 10px;
    }
    .title span{
        padding: 7px 10px;
        background-color: #ff5371;
        border-radius: 4px;
        color: #fff;
        outline: none;
        border: none;
        font-size: 14px;
        border-bottom: 2px solid red;
    }
    .out-list{
        /*height: 115px;*/
        padding: 10px;
        border-bottom: 2px solid @theme-color-dark;
    }
    .out-list ul li:first-child{
        background-color: #eeeeee;
    }
    .ivu-icon[data-v-5e279927]{
        color: #FE5371;
    }
    .out-list ul li{
        width: 775px;
        /*height: 30px;*/
        padding-left: 10px;
        line-height: 30px;
    }
    .out-list ul li:first-child{
        background-color: #F8F8F8;
    }
    .ivu-icon[data-v-061bc96f]{
        color: #FE5371;
    }
    .list-top{
        line-height: 30px;
        width: 946px;
        height: 30px;
        padding-left: 10px;
        background-color: #F5EEEF;
    }
    .list-top span{
        margin: 0 246px;
    }
    .list-top>:nth-child(2){
        margin: 0 70px;
    }
    .list-top>:nth-child(3){
        margin: 0 56px;
    }
    }
</style>